package com.tz.basedemo.basecode.baseUi.activity;

import android.content.Context;
import android.view.View;
import android.widget.TextView;

import com.tz.basedemo.R;
import com.tz.basedemo.R2;
import com.tz.basedemo.basecode.base.BaseActivity;
import com.tz.basedemo.basecode.baseUi.biz.DameActBiz;
import com.tz.basedemo.basecode.baseUi.component.DaggerDameActComponent;
import com.tz.basedemo.basecode.baseUi.contract.DameActContract;
import com.tz.basedemo.basecode.baseUi.module.DameActModule;
import com.tz.basedemo.basecode.baseUi.presenter.DameActPresenter;
import com.tz.basedemo.basecode.basebean.SelectVoiceInfo;

import javax.inject.Inject;

import butterknife.BindView;
import okhttp3.RequestBody;

public class DameActivity extends BaseActivity implements DameActContract.View {

    @Inject
    DameActPresenter dameActPresenter;
    @Inject
    DameActBiz dameActBiz;

    @BindView(R2.id.hello_text)
    TextView hello_text;

    @Override
    protected void setup() {
        super.setup();
        DaggerDameActComponent.builder().dameActModule(new DameActModule(this)).build().inject(this);
        dameActPresenter.setBiz(dameActBiz);
    }

    @Override
    protected int getLayoutResId() {
        return R.layout.activity_main;
    }

    @Override
    protected void init() {
        hello_text.setText("asegrhdhdfh");

        hello_text.setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View v) {
                dameActPresenter.login();
                dameActPresenter.selectVoice();
            }
        });

    }

    @Override
    protected void initTitle() {

    }

    @Override
    public Context curContext() {
        return null;
    }

    @Override
    public RequestBody getSelectVoice() {
        return null;
    }

    @Override
    public void showSelectVoice(SelectVoiceInfo selectVoiceInfo) {

    }

    @Override
    public void showFalseSelectVoice() {

    }
}
